import Vue from "vue";
import Router from "vue-router";

//系统
import login from "../views/login.vue";
import home from "../views/home.vue";

Vue.use(Router);
export default new Router({
  mode: process.env.NODE_ENV == "production" ? "hash" : "history",
  routes: [
    {
      //首页
      path: "/",
      name: "home",
      component: home,
    },
    {
      path: "/login",
      name: "login",
      component: login,
    }
  ],
});
